﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Text;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace jQueryDotNetLib.Controls
{
    [ToolboxData("<{0}:Tab TabName=\"\" runat=\"server\"></{0}:Tab>")]
    [Serializable()]
    public class Tab : System.Web.UI.WebControls.Literal
    {
        public string TabName
        {
            get;
            set;
        }

        protected override void Render(HtmlTextWriter writer)
        {
            if (TabName != null)
            {
                writer.Write("<li><a href='#" + TabName + "'>" + Text + "</a></li>");
            }
        }
    }
}
